package leetcode;

/**
 * @Project : ProgrammingExercises
 * @Package : Leetcode
 * @File : Q2481.java
 * @Author : WangRuoyu
 * @Date 2023/2/24 10:28
 */
public class Q2481 {
    public int numberOfCuts(int n) {
        if (n == 1) return 0;
        if (n % 2 == 0) return n / 2;
        return n;
    }

    public static void main(String[] args) {
        Q2481 sl = new Q2481();
        int n = 3;
        System.out.println(sl.numberOfCuts(n));
    }
}
